package com.xian.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xian.common.annotation.Excel;
import com.xian.common.core.domain.BaseEntity;

/**
 * 新闻信息对象 tb_search
 * 
 * @author Hanys
 * @date 2025-04-08
 */
public class Search extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻ID */
    private Long id;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String title;

    /** 作者列表 */
    @Excel(name = "作者列表")
    private String authors;

    /** 发表年份 */
    @Excel(name = "发表年份")
    private Long year;

    /** 摘要 */
    @Excel(name = "摘要")
    private String content;

    /** 关键词列表 */
    @Excel(name = "关键词列表")
    private String keywords;

    /** 发表期刊 */
    @Excel(name = "发表期刊")
    private String journal;

    /** 标题类型 */
    @Excel(name = "标题类型")
    private String titleType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setAuthors(String authors) 
    {
        this.authors = authors;
    }

    public String getAuthors() 
    {
        return authors;
    }

    public void setYear(Long year) 
    {
        this.year = year;
    }

    public Long getYear() 
    {
        return year;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }

    public void setJournal(String journal) 
    {
        this.journal = journal;
    }

    public String getJournal() 
    {
        return journal;
    }

    public void setTitleType(String titleType) 
    {
        this.titleType = titleType;
    }

    public String getTitleType() 
    {
        return titleType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("authors", getAuthors())
            .append("year", getYear())
            .append("content", getContent())
            .append("keywords", getKeywords())
            .append("journal", getJournal())
            .append("titleType", getTitleType())
            .toString();
    }
}
